import Mock from 'mockjs';

let item = [{
		key: "/client/all",
		method: "get",
		param: {
			
		},
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA|1-4': [{
					"clientid|4": /[A-Z][a-z][0-9][0-9][0-9][0-9][0-9][0-9]/,
					"nickname": "@cword(6,9)",
					"openid|4": /[A-Z][a-z][0-9][0-9][0-9][0-9][0-9][0-9]/,
					"sex|1": ["1", "2"],
					"age": "@integer(10,99)",
					"heading": "@image('200x200')",
					"from|4": /[A-Z][a-z][0-9][0-9][0-9][0-9][0-9][0-9]/,
					'tel|11': /[0-9]/,

				}]
			});
		}
	},
	{
		key: "/client/page",
		method: "get",
		param: {
		},
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': {
					'current': 0,
					'size': 10,
					'pages': 6,
					'total': 55,
					"records|10": [{
						"clientid":"@natural",
						"nc": "@cname()",
						"sex|1": [1, 2],
						"age": 20,
						"heading": "https://bpic.588ku.com/element_origin_min_pic/24/12/13/d651ada66fe9f52addd89b7b0dfb1905.jpg",
						"from|4": /[A-Z][a-z][0-9][0-9][0-9][0-9][0-9][0-9]/,
						'tel|11': /[0-9]/,
						'yj':200,
						'czid':"1001",
						"amount":"2000",
						"ct":"@date()",
						"pflg|1":["0","1"],
						
					}]
				}
			});
		}
	},
	{
		key: "/client/info",
		method: "get",
		prarm: {
		},
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': {
					'current': 0,
					'size': 10,
					'pages': 6,
					'total': 55,
					
				"client":{
					
					"clientid":"@natural",
					"nc": "@cname()",
					"sex|1": [1, 2],
					"age": 20,
					"heading": "https://bpic.588ku.com/element_origin_min_pic/24/12/13/d651ada66fe9f52addd89b7b0dfb1905.jpg",
					"from|4": /[A-Z][a-z][0-9][0-9][0-9][0-9][0-9][0-9]/,
					'tel|11': /[0-9]/,
					'yj':200,
					'czid':1001,
					"amount":"2000",
					"ct":"@date()",
					"pflg|1":["0","1"],
					},
				
					"aclientcz|5":[{
						
						"czid":1001,
						"amount":200,
						"ct":"@date()",
						"pflg|1":[true,false],
					
					}],
				}
			})
		}
	},

	{
		key: "/client/info",
		method: "post",
		param: {
		},
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': {

				}
			})
		}
	},
	{
		key: "/client/info",
		method: "put",
		param: {
		},
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': {

				}
			})
		}
	},
	{
		key: "/client/info",
		method: "delete",
		param: {
			empId: '',
		},
		data: () => {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'DATA': {

				}
			})
		}
	},

]
export default item;